Revert part of 23811:f1349a968a5a "ns16550: Simplify UART..."
authorKeir Fraser <keir@xen.org>
Wed, 12 Oct 2011 16:11:28 +0000 (17:11 +0100)
committerKeir Fraser <keir@xen.org>
Wed, 12 Oct 2011 16:11:28 +0000 (17:11 +0100)
commit2a869011d4ee6e0adf5246734d148e7ad68a0d84
tree6e0f480ec6e36477a0cd7702dd50074393f1e4be
parentc18ad21eac8097217ed16f9a506ac4981abe2442
Revert part of 23811:f1349a968a5a "ns16550: Simplify UART..."

The change to poll LSR.THRE in a loop from __ns16550_poll is a bug.
We can loop indefinitely if there are no chars to transmit.

Thanks to Jan for spotting it.

Signed-off-by: Keir Fraser <keir@xen.org>
xen/drivers/char/ns16550.c